package person.xjl.spring;

import jdk.nashorn.internal.ir.annotations.Reference;
import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.*;
import org.apache.ibatis.annotations.ConstructorArgs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Getter@Setter
@ToString

@Component("aLi")
public class Human {
    @Value("suzhuoli")
    private String name;
    @Autowired
    //按标识注入属性值
    //@Qualifier("car")
    private List<Car> cars;

}
